import request from '@/utils/request';
import { fileItem } from './data';

export async function list(params?: any) {
  return request(`/AllLinks/file-manage/_query`, {
    method: 'GET',
    params: params,
  });
}

export async function remove(id: string) {
  return request(`/AllLinks/file-manage/${id}/del`, {
    method: 'POST',
  });
}

export async function update(params: fileItem) {
  return request(`/AllLinks/file-manage/${params.id}/_update?fileName=` + params.fileName, {
    method: 'POST',
  });
}